﻿using System.Data.Common;
using Microsoft.EntityFrameworkCore;

namespace ZCMS.EntityFrameworkCore
{
public static	class RWDBDbContextOptionsConfigurer
	{
		public static void Configure(
		   DbContextOptionsBuilder<RWDBDbContext> dbContextOptions,
		   string connectionString
	   )
		{
			/* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
			dbContextOptions.UseSqlServer(connectionString);
		}

		public static void Configure(
			DbContextOptionsBuilder<RWDBDbContext> dbContextOptions,
			DbConnection connection
		)
		{
			/* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
			dbContextOptions.UseSqlServer(connection);
		}
	}
}
